import request from '@/utils/request'

// 查询点位攻略图列表
export function listPic(query) {
  return request({
    url: '/tile/pic/list',
    method: 'get',
    params: query
  })
}

// 查询点位攻略图详细
export function getPic(pointStrategyPicId) {
  return request({
    url: '/tile/pic/' + pointStrategyPicId,
    method: 'get'
  })
}

// 新增点位攻略图
export function addPic(data) {
  return request({
    url: '/tile/pic',
    method: 'post',
    data: data
  })
}

// 修改点位攻略图
export function updatePic(data) {
  return request({
    url: '/tile/pic',
    method: 'put',
    data: data
  })
}

// 删除点位攻略图
export function delPic(pointStrategyPicId) {
  return request({
    url: '/tile/pic/' + pointStrategyPicId,
    method: 'delete'
  })
}
